package com.changgou.seckill.web.controller;

import com.changgou.entity.Result;
import com.changgou.seckill.feign.SeckillFegin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wseckillorder")
public class SecKillOrderController {

    @Autowired
    private SeckillFegin seckillFegin;

    @RequestMapping("/add")
     public Result add(@RequestParam("time") String time,@RequestParam("id") Long id){
        Result result = seckillFegin.add(time, id);
        return result;
    }
}
